package com.设计模式.代理模式.动态代理.CGLIB动态代理;

import com.设计模式.代理模式.动态代理.JDK动态代理.MyInvocationHandler;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/1  14:10
 * 描述:
 */
public class TestCB {

    public static void main(String[] args) {

       /*  TestCgLibDaiLia testCgLibDaiLia=new TestCgLibDaiLia();

         MyMethodInterceptor<TestCgLibDaiLia> MyMethodInterceptor=new MyMethodInterceptor<TestCgLibDaiLia>(testCgLibDaiLia);

        TestCgLibDaiLia instance = MyMethodInterceptor.getInstance(TestCgLibDaiLia.class);

        System.out.println(instance.test01());*/

        MyMethodInterceptor2<TestCgLibDaiLi2> MyMethodInterceptor=new MyMethodInterceptor2<TestCgLibDaiLi2>();
        TestCgLibDaiLi2 instance = MyMethodInterceptor.getInstance(TestCgLibDaiLi2.class);
        String s = instance.test02();
        System.out.println(s);

    }

}
